package cn.deschen.biz.dto.search;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author hanbin_chen
 * @Description 广告搜索结果
 * @DateTime 2021/6/24
 * @Version V1.0.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AdSearchVO {

    public Map<String, List<CreativeVO>> creativeList = new HashMap<>();

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class CreativeVO {

        @ApiModelProperty(value = "创意Id")
        private String id;

        @ApiModelProperty(value = "创意名称")
        private String creativeName;

        @ApiModelProperty(value = "物料类型(image-图片, video视频)")
        private String materialType;

        @ApiModelProperty(value = "物料子类型(图片: bmp, jpg 视频:mp3, avi)")
        private String childMaterialType;

        @ApiModelProperty(value = "高度")
        private Integer height;

        @ApiModelProperty(value = "宽度")
        private Integer width;

        @ApiModelProperty(value = "物料大小, 单位是 KB")
        private Long size;

        @ApiModelProperty(value = "持续时长, 只有视频才不为 0")
        private Integer duration;

        @ApiModelProperty(value = "审核状态(auditing-审批中  pass-审核通过 be_refused-被打回拒绝)")
        private String auditStatus;

        @ApiModelProperty(value = "物料地址")
        private String url;

    }

}
